package com.example.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户关注
 *
 * @TableName tb_follow
 */
@TableName(value = "tb_follow")
@Data
public class Follow implements Serializable {
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private Long userId;
    /**
     * 关联的用户id
     */
    @TableField(value = "follow_user_id")
    private Long followUserId;
    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;
}